home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 18 / Developer Source Volume 18 (I-MODE Publications, Inc.)(2000).iso / delph / 011 / rosaf103.gif < prev    next >
Graphics Interchange Format  |  2000-06-28  |  144KB  |  635x439  |  8-bit (134 colors)
Labels: text | screenshot | number | font | document | parallel
OCR: What When Why CPL.CPL_INIT Called immediately after the .CPL The CPIApplet function should perform initialization pro- containing the applet is loaded. cedures, e.g. memory allocation if necessary. If it can't complete the initialization, it should return zero, directing the controlling application to terminate communication, and release the .CPL. If it can complete the initialization, it should return any non-zero value. CPL.CPL_GETCOUNT Called after the CPL_INIT function The CPIApplet function should return the number of dia- call returns any non-zero value. log boxes it implements. CPL.CPL_INQUIRE Called after the CPL_GETCOUNT The CPlApplet function should provide information function call returns a count about a specified dialog box. The IParam2 parameter greater than, or equal to, 1. The points to a CPLINFO record. The CPIApplet function uses CPIApplet function will be called this record to tell the controlling application the applet's once for each dialog box, indicat- name, description, and icon. ing which dialog box with its 0- based index placed in IParam1. CPL.CPL_DBLCLK Called after the user has chosen The CPIApplet function should display the corresponding the icon associated with a given dialog box, and carry out any user-specified tasks, dialog box. CPL.CPL_STOP Called once for each dialog box The CPIApplet function should free any resources associ- before the controlling application ated with the given dialog box. closes, indicating which dialog box with its 0-based index placed in IParam1. CPL.CPL_EXIT Called after the last CPL_STOP The CPlApplet function should free any remaining function call and immediately before the controlling application resources, and prepare to close. uses the FreeLibrary function to free the .CPL containing the applet. Figure 3: Possible values for the CPIApplet parameter uMsg.